package com.wasion.pwportable.protocol.analyzer.indicator;

import com.wasion.pwportable.protocol.analyzer.AbstractAnalyzer;

/**
 * 
 * @ClassName: Ground_Temp_Current_RD_Analyzer
 * @Description: 21/22. 温度告警阀值（电缆）
 * @author 高意
 * @date 2014-9-11 上午9:53:48
 * 
 */
public class Ground_Temp_Current_RD_Analyzer extends AbstractAnalyzer {

	@Override
	public void dataAnalysis(String ackBS) {

		String data = ackBS.substring(DATABITSTART, DATABITSTART + 12);

		result.setTempCurrent1(getCurrentPositive(data.substring(0, 4)));
		result.setTempCurrent2(getCurrentPositive(data.substring(4, 8)));
		result.setTempCurrent3(getCurrentPositive(data.substring(8, 12)));
	}
}
